<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../node_modules/react/umd/react.development.js"></script>
    <script src="../node_modules/react-dom/umd/react-dom.development.js"></script>
    <script src="../node_modules/babel-standalone/babel.min.js"></script>
  </head>
  <body>
    <div id="demoReact"></div>
    <script type="text/babel">
      // 1.jsx中的注释 {/*我是被注释的*/}
      let myDom = <h1>{/*我是被注释的*/}</h1>;
      //   2.多行标签 需要有一个父元素包裹
      let myDom = (
        <div>
          <div>我是第一个内容</div>
          <div>我是第二个内容</div>
        </div>
      );
      ReactDOM.render(myDom, document.getElementById("demoReact"));
    </script>
  </body>
</html>
